package com.qf.main.pharmacy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
@author chengqiang
@Create 2024-02-19-17:26
@Description:
*/

/**
 * 购物车
 */
@ApiModel(description = "购物车")
@Data
@TableName(value = "cart")
public class Cart {
    public static final String COL_NALL_NUMBER = "nall_number";
    /**
     * 购物车主键
     */
    @TableId(value = "cart_id", type = IdType.INPUT)
    @ApiModelProperty(value = "购物车主键")
    private Integer cartId;

    /**
     * 买家id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "买家id")
    private Integer userId;

    /**
     * 商品id
     */
    @TableField(value = "mall_id")
    @ApiModelProperty(value = "商品id")
    private Integer mallId;

    /**
     * 0选中1没选中
     */
    @TableField(value = "mall_status")
    @ApiModelProperty(value = "0选中1没选中")
    private Integer mallStatus;

    /**
     * 数量
     */
    @TableField(value = "Mall_number")
    @ApiModelProperty(value = "数量")
    private Integer mallNumber;

    public static final String COL_CART_ID = "cart_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_MALL_ID = "mall_id";

    public static final String COL_MALL_STATUS = "mall_status";

    public static final String COL_MALL_NUMBER = "Mall_number";
}